package com.prestamomo.vil.ppa.pmvilpage.pmrot.load;

import android.app.Dialog;
import android.content.Context;
import android.view.WindowManager;
import android.widget.TextView;

import com.prestamomo.vil.ppa.R;


public class PmvilCustomDlg extends Dialog {
    private String pmvilContent;

    public PmvilCustomDlg(Context context, String content) {
        super(context, R.style.PmvilCustomDialog);
        this.pmvilContent =content;
        initPmvilView();
    }


    private void initPmvilView(){
        setContentView(R.layout.dlg_pmvil_view);
        ((TextView)findViewById(R.id.dlg_pmvil_tvcontent)).setText(pmvilContent);
        setCanceledOnTouchOutside(false);
        WindowManager.LayoutParams attributes = getWindow().getAttributes();
        attributes.alpha=0.8f;
        getWindow().setAttributes(attributes);
        setCancelable(false);
    }
}
